﻿using PgBirdie.Core.Model.Database.Structure;

namespace PgBirdie.Core.Service.Dump
{
    public interface IDbFromPgDumpService
    {
        /// <summary>
        /// Extracts database structure from raw pg_dump text.
        /// Pg_dump must use CREATE DATABASE switch when dumping.
        /// </summary>
        PgDatabase GetDbStructureFromPgDump(string text);

        /// <summary>
        /// Populate database tables with static data.
        /// </summary>
        void PopulateStaticDataFromPgDump(ref PgDatabase db, string text);
    }
}